// export function getUserDataByWechatCode () {
// 	return new Promise((resolve, reject) => {
// 		setTimeout(() => {
// 			resolve({
// 				"account": null,
// 				"iscUserSourceId": null,
// 				"nameCode": "hb_yaoyi",
// 				"baseOrgId": "0A5EE26309DE75E0E0530100007FD2BA",
// 				"baseOrgIdPath": "/1/EC2A77A9402D5689E0430100007F864F/0A5EE26309DE75E0E0530100007FD2BA",
// 				"baseOrgName": "组织UAT19786976",
// 				"baseOrgNamePath": "/国家电网/组织9122/组织UAT19786976",
// 				"deptId": null,
// 				"name": "姚毅",
// 				"state": "1",
// 				"unitId": "EC2A77A9402D5689E0430100007F864F",
// 				"unitName": "组织9122",
// 				"useContact": null,
// 				"userId": "74b3f3c2b8174cf48796ec85a365ea4f",
// 				"userType": "1",
// 				"labelList": [],
// 				"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicG9ydGFsX3NlcnZpY2VzIl0sImV4cCI6MTY1OTY3ODk1MSwidXNlcl9uYW1lIjoiNzRiM2YzYzJiODE3NGNmNDg3OTZlYzg1YTM2NWVhNGYiLCJqdGkiOiI4OTFmMzY1OS0yMDgxLTQxYzMtOWI2Ni1kYjVmMmI1NGE4NzEiLCJjbGllbnRfaWQiOiJwb3J0YWwtYXV0aC1zZXJ2aWNlIiwic2NvcGUiOlsic2VydmljZSJdfQ.KRIdZ-veGocIKDVkS3UOHDh1aJ7kKZKW0ZLYhxtuZDvngwHEH8I5Tspw5UiFx3X_TfbvksNsbd8QEGQCDR9pqauoGqPY67Emb1d07QNRnQ46LyzhpGRxiEw7BHi0xfAhe8eBAljJfbtaoeo2DGeR5oeJbX7r6bZ8LJf7LCELWtrloQChN9UabRKRMhhpAeJ6A-8DlLCFEi8wNI-s7qsLDIHWovaCH-qdcSswYhaYsJ1LAR7MNSTzlwyZp3tA06qwzeE7hdMKyfmB5F958DzC1bhfiR8RcWZ9HFM4t3MLZWWtBe1L1a8MKazAh8lSxTV3ROU5FI0L3CXTSLurdCiF3w",
// 				"refreshToken": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsicG9ydGFsX3NlcnZpY2VzIl0sInVzZXJfbmFtZSI6Ijc0YjNmM2MyYjgxNzRjZjQ4Nzk2ZWM4NWEzNjVlYTRmIiwic2NvcGUiOlsic2VydmljZSJdLCJhdGkiOiI4OTFmMzY1OS0yMDgxLTQxYzMtOWI2Ni1kYjVmMmI1NGE4NzEiLCJleHAiOjE2NTk2OTMzNTEsImp0aSI6IjJjOTI4NTIwLTEyODYtNDE3ZC1iNmQzLWI1YzVjNGI2YjY1ZiIsImNsaWVudF9pZCI6InBvcnRhbC1hdXRoLXNlcnZpY2UifQ.IsAm5tOxinrb08QR6DUYLyJkweWjACX3eQgAK7AYGmCnIB8DhK8Y8JTle3_cHolBjZHEwICfMuCIzX1pggGCsWYyrkedOUsadCfQUnUnMytszxDG22DlXOIFTXobNVHc2DmFbmRaWKC3Ky3hBu9sjxd5XU7vcCTJW2h7ojx6m74MOrPRgDx-5-ndg01glkISdWm1ld74JFadqJcQ8zmLNFU-N30-yNvZWe_U7j8PVkkSRw1Z7NfeMqhCWWNMkcDdOjffUEU84cvteuN07WktV3GRZeH7Eb-C8hwQ_hg4TohAjtpoiE5O48au36VsqVm2EJJELhWXJfJjPQERYrwNrg",
// 				"wxUserId": "5efb1f35578346f48c0e96a8db2bef8a",
// 				"wxDeptId": "111",
// 				"provinceId": "hb",
// 				"userKey": "",
// 				"refreshTime": "1659676666018"
// 			}})
// 		}, 1000)
// 	})
// }

export function mockLogin (data) {
	return new Promise((resolve, reject) => {
		setTimeout(() => {
			resolve({
				"name": "⽩明智", // 姓名
				"access_token": 
				"eyJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI4OEZsOVNvTUh5dCIsImV4cCI6MTY1ODk2NzI5OCwidWlkIjoidV9iNmNjOGI2NjZhNjM0MmIwYWM1YWFjMmJkMWYyZmZlYSIsInN5c19yb2xlIjozLCJkaXN0cmljdCI6Iuaxn-WyuOWMuiJ9.2e4gMvE-0ZHbonICTK81WKe3wOXtWZOCPAF4y0FIHow",
				"refresh_token": "a5ePH1DjIJf",
				"token_type": "Bearer",
				"expires_in": 43200000, // 过期时间
				"user_id": "u_b6cc8b666a6342b0ac5aac2bd1f2ffea", // ⽤户ID
				"user_name": "bmz", // ⽤户名
				"sys_role": 3, // 系统⻆⾊，1:超级管理员，2:组管理员，3:普通⽤户
				"group_code": "424011702", // 组织机构代码
				"user_type": 3 // ⽤户类别,1:海致admin，2:所的管理类别，3:所的普通⼈员
			})
		}, 1000)
	})
}